﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using MvcAtletIS.Models;

namespace MvcAtletIS.Areas.MyClub.Controllers
{
    [Authorize(Roles = "Users")]
    public class HomeController : Controller
    {
        atletisEntities db = new atletisEntities();
        
        // GET: /MyClub/Home/
        public ActionResult Index()
        {
            var clubs = db.Clubs.Single(c => c.ID == User.Identity.Name);
            return View(clubs);
        }

        

    }
}
